import Vue from 'vue'
import App from './App.vue'

// 引入组件库vantUI
import Vant from 'vant'
import 'vant/lib/index.css'

Vue.use(Vant)

//底部导航栏
import foot from './components/foot';
Vue.use(foot);/*使用自定义的公共组件*/
Vue.component('foot',foot);


//猜你喜欢
import guess from './components/guess';
Vue.use(guess);/*使用自定义的公共组件*/
Vue.component('guess',guess);

// 移动端适配
import 'amfe-flexible';



// 引入路由
import router from '../src/router'

// 引入store
import store from '../src/store'


Vue.config.productionTip = false

new Vue({
	
  render: h => h(App),
  //注册路由
  router,
  store,
  beforeCreate() {
          Vue.prototype.$bus = this //安装全局事件总线，$bus就是当前应用的vm
      },
}).$mount('#app')
